package com.deer.wms.inventory.dao;

import com.deer.wms.inventory.model.stockTake.StockTakeTask;
import com.deer.wms.inventory.model.stockTake.StockTakeTaskCriteria;
import com.deer.wms.inventory.model.stockTake.StockTakeTaskDto;
import com.deer.wms.project.root.core.mapper.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StockTakeTaskMapper extends Mapper<StockTakeTask> {
    
    
    List<StockTakeTaskDto> findList(StockTakeTaskCriteria criteria);

    //根据盘点任务号查询所有下架任务是否都完成
    Integer selectNum(@Param("stockMasterId") Integer stockMasterId);

    //根据stockTakeMasterId 查询数据
    StockTakeTask getStockTakeMasterId(Integer id);

    Map<String, Object> inventoryReturn(StockTakeTaskCriteria criteria);
}